<?php

class Car
{
  public $name = 'Maruti Ritz';

  function __sleep()
  {
    echo __LINE__ , "\n\n";
    return array();
  }

  function __wakeup()
  {
    echo __LINE__ , "\n\n";
  }

}

$ritz = new Car;
$str  = serialize($ritz);
echo $str;
echo __LINE__ , "\n\n";
unserialize($str);
